package router

import (
	"api-gateway/handler/api"
	"github.com/gin-gonic/gin"
)

func Seckill(v1 *gin.RouterGroup) {
	seckill := v1.Group("/seckill")
	{
		seckill.POST("/createActivity", api.CreateActivity)   //秒杀添加(秒杀前)
		seckill.POST("/executeActivity", api.ExecuteActivity) //秒杀执行（秒杀中）
		seckill.POST("/finishActivity", api.FinishActivity)   //秒杀结束（秒杀后）
		seckill.POST("/listActivity", api.ListActivity)       //秒杀列表
	}
}
